//package com.kevin.learn.策略模式.策略加工厂2;
//
//import java.util.Map;
//import java.util.concurrent.ConcurrentHashMap;
//
///**
// * 版本二：工厂使用(高级版)
// */
////@Service
//public class UserPayServiceStrategyFactory {
//
//    private static Map<String,UserPayService> services = new ConcurrentHashMap<String,UserPayService>();
//
//    public  static UserPayService getByUserType(String type){
//        return services.get(type);
//    }
//
//    public static void register(String userType,UserPayService userPayService){
//        Assert.notNull(userType,"userType can't be null");
//        services.put(userType,userPayService);
//    }
//}
//
